package com.bul.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;

@Configuration
//@ComponentScan({"com.bul.service","com.bul.dao"})
@ComponentScan(value = "com.bul" ,//扫描该包下所有的东西
        //并且按注解的方式排除掉使用Controller注解的类
        excludeFilters = @ComponentScan.Filter(
                type = FilterType.ANNOTATION,
                classes = Controller.class
        )
)
public class SpringConfig {
}
